body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(120deg, #eef2f7, #dce3f0);
    margin: 0;
    padding: 0;
    color: #333;
}

h1 {
    text-align: center;
    font-size: 2.8rem;
    margin: 30px 0 10px;
    color: #2c3e50;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.tag-filter {
    text-align: center;
    margin: 20px auto;
    padding: 15px;
    max-width: 1800px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.tag-filter label {
    margin: 6px 10px;
    cursor: pointer;
}

.tag-filter span {
    padding: 8px 18px;
    border-radius: 20px;
    background: #f1f3f5;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-block;
}
.tag-filter input[type=checkbox] {
    display: none;
}
.tag-filter input[type=checkbox]:checked + span {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    box-shadow: 0 3px 10px rgba(0,123,255,0.35);
    transform: scale(1.08);
}

#toggle-filter-btn {
    display: inline-block;
    margin: 15px auto;
    padding: 6px 14px;
    border-radius: 20px;
    background: #f8f9fa;
    color: #007bff;
    border: 1px solid #007bff;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}
#toggle-filter-btn:hover {
    background: #007bff;
    color: #fff;
}

/* 默认折叠 */
#filter-wrapper {
    overflow: hidden;
    transition: max-height 0.4s ease;
    max-height: 0;
}
/* 默认折叠 */
#filter-wrapper {
    overflow: hidden;
    transition: max-height 0.4s ease;
    max-height: 0;
}

.reset-btn {
    display: inline-block;
    padding: 10px 24px;
    margin: 20px auto;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #ffcc00, #ffb400);
    color: #333;
    font-weight: bold;
    transition: transform 0.2s ease, background 0.3s ease;
}
.reset-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #e0a800, #cc8f00);
}

.video-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 30px 40px;
}

.video-item {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    padding: 15px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.video-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

video {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 12px;
}

p {
    margin: 6px 0;
    color: #555;
    font-size: 0.95rem;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

.download-btn, .delete-btn, .bag-btn {
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.3s ease;
}
.download-btn { background: linear-gradient(135deg, #007bff, #0056b3); }
.delete-btn { background: linear-gradient(135deg, #bb0b0b, #bb0b0b); }
.bag-btn { background: linear-gradient(135deg, #28a745, #28a745); }

.download-btn:hover, .delete-btn:hover, .bag-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.tag-btn {
  display: inline-block;
  margin: 2px 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: #f1f3f5;
  color: #333;
  transition: all 0.2s ease;
}
.tag-btn:hover {
  background: #007bff;
  color: #fff;
  transform: scale(1.05);
}
.tag-btn.success { background: #d4edda; color: #155724; }
.tag-btn.collision { background: #f8d7da; color: #721c24; }
.tag-btn.failed { background: #f5c6cb; color: #721c24; }
.tag-btn.timeout { background: #fff3cd; color: #856404; }


.pagination {
    text-align: center;
    margin: 30px 0 50px;
}
.pagination a {
    padding: 10px 18px;
    margin: 0 6px;
    border-radius: 8px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.3s ease;
}
.pagination a:hover {
    background: linear-gradient(135deg, #0056b3, #003f88);
    transform: translateY(-2px);
}
.pagination span {
    margin: 0 10px;
    font-weight: 500;
    color: #444;
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    .video-list { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); padding: 20px; }
}